package com.module.admin.app.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.module.admin.app.pojo.AppUser;

/**
 * app_user的Dao
 * @author admin
 * @date 2020-12-27 23:17:09
 * @version V1.0.0
 */
public interface AppUserDao {

	/**
	 * 保存
	 * @param appUser
	 */
	public abstract void save(AppUser appUser);
	/**
	 * 修改
	 * @param appUser
	 */
	public abstract void update(AppUser appUser);
	/**
	 * 根据aiId删除对象
	 * @param aiId
	 */
	public abstract void delete(@Param("aiId")String aiId, @Param("userId")Integer userId);
	/**
	 * 根据aiId获取对象
	 * @param aiId
	 * @return
	 */
	public abstract AppUser get(@Param("aiId")String aiId, @Param("userId")Integer userId);

	/**
	 * 根据条件获取列表
	 * @param appUser
	 * @return
	 */
	public abstract List<AppUser> findAppUser(AppUser appUser);
	/**
	 * 根据条件获取总记录数
	 * @param appUser
	 * @return
	 */
	public abstract int findAppUserCount(AppUser appUser);
	public abstract List<AppUser> findByAiId(@Param("aiId")String aiId);
}